import {http} from '@/utils/http'

// 添加文章
export function addArticle(data: any) {
    return http.post<any>('/admin/article/addArticle', data)
}

// 修改文章
export function updateArticle(data: any) {
    return http.post<any>('/admin/article/updateArticle', data)
}

// 删除文章
export function deleteArticle(data: any) {
    return http.post<any>('/admin/article/deleteArticle', data)
}

// 获取文章详情
export function getArticle(data: any) {
    return http.post<any>('/admin/article/getArticle', data)
}

// 获取文章分页列表
export function getArticlePage(data: any) {
    return http.post<any>('/admin/article/getArticlePage', data)
}

// 翻译
export function translationContent(data: any) {
    return http.post<any>('/admin/article/translationContent', data)
}

// 设置展示或者不展示状态
export function updateExhibit(data: any) {
    return http.post<any>('/admin/article/updateExhibit', data)
}

// 删除关联
export function deleteArticleRel(data: any) {
    return http.post<any>('/admin/article/deleteArticleRel', data)
}

















